<?php
$baseUrl = Yii::app()->request->baseUrl;
$ca = $this->getAbout();
$cn = $this->getNews();
$f = $this->getFile();
?>

<div class="container">
    <div class="navbar-default">
        <div class="navbar-collapse collapse">
            <ul class="nav navbar-nav">
                <li class="time">Nam Giang, 30/10/2013</li>
                <li class="active"><a href="#">Trang chủ</a></li>
                <li class="dropdown"> <a href="#" class="dropdown-toggle" data-toggle="dropdown" data-hover="dropdown" title="Giới thiệu">Giới thiệu <b class="caret"></b></a>
                    <ul class="dropdown-menu">
                        <?php
                        foreach ($ca as $value) {
                            echo '<li>' . CHtml::link($value->name, array('/gioi-thieu/' . $value->alias . '.html'), array('title' => $value->name)) . '</li>';
                        }
                        ?>
                    </ul>
                </li>
                <li class="dropdown"> <?php echo CHtml::link($cn[0]->name, array('/' . $cn[0]->alias . '-c' . $cn[0]->id . '.html'), array('title' => $cn[0]->name)) ?></li>
                <?php
                foreach ($f as $value) {
                    echo '<li>' . CHtml::link($value->name, array('/' . $value->alias . '-f' . $value->id . '.html'), array('title' => $value->name)) . '</li>';
                }
                ?>
                <li><?php echo CHtml::link('Liên hệ', array('/lien-he.html'), array('title' => 'Liên hệ')) ?></li>
                <li>
                  
                    <?php $this->widget("Search") ?>
                </li>
            </ul>
        </div>
        <!--/.nav-collapse --> 
    </div>
</div>